<?php
/**
 * Executes queries on the database
 * 
 * Basically serving as an abstraction layer.  It would be better simply to
 * provide an interface or something more easily adaptable.
 * 
 * @package shoehorn
 */

/**
 * Shoehorn Database Class
 * 
 * This should totally be changed to an interface.
 *
 * @package shoehorn
 * @subpackage classes
 */
class Shoehorn_Data_Pgsql extends Shoehorn_Data
{
	
	protected $dsn;
	protected $err;
	
	function __construct($dsn, &$err)
	{
		parent::__construct($dsn, $err);
		/*
		if($dbc = pg_connect('host=' . SHOEHORN_DB_HOST . ' dbname=' . SHOEHORN_DB_NAME . ' user=' . SHOEHORN_DB_USER . ' password=' . SHOEHORN_DB_PASS)) {
			return true;
		} else {
			return false;
		}
		*/
	}
	
	/**
	 * Execute a query
	 *
	 * @param string $query
	 * 
	 */
	function execute($query)
	{
		$query = trim($query);
		echo("Executed against a postgres database!");
	}
	
}